import { default as axios } from '@/utils/request'

const prefix = '/token'

// 登录校验
export function login(name, pass) {
  return axios.post(`${prefix}/login`, {
    name,
    pass
  })
}